<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字动态效果演示</title>
    <style>
        html,body,p{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body{
            height: 100vh;
            width: 100vw;
            background: #000;
            overflow: hidden;
        }
        p{
            height: 100%;
            color: transparent;/*字体设置透明*/
            background-clip: text;/*设置文字背景*/
            -webkit-background-clip: text;
            background-image: url(./image/index.gif);
            background-position: center;
            background-size: cover;
            mix-blend-mode: hard-light;/*颜色加强 hard-light:强光*/
            filter: grayscale(1) invert(1);
            word-break: break-all;
        }
    </style>
</head>
<body>
    <p id="wrap"></p>
    <script>
        const p = document.getElementById('wrap')
        p.innerText = Array(200).fill(Math.random() * 1234567890 + 100000000).reduce((str,item) => str + parseInt(item).toString(2),'')
    </script>
</body>
</html>